Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.coafile: Add section for XML files #41

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ ignore = com.coala.core/src/com/coala/core/utils/diff_match_patch.java
bears = CheckstyleBear
max_line_length = 90
use_spaces = True

[xml]
files = **/*.xml
bears = XMLBear
3 changes: 1 addition & 2 deletions com.coala.core.tests/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down
72 changes: 17 additions & 55 deletions com.coala.core/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,22 @@
<?eclipse version="3.4"?>
<plugin>

<extension
point="org.eclipse.ui.commands">
<category
name="Main Category"
id="com.coala.core.commands.category">
<extension point="org.eclipse.ui.commands">
<category name="Main Category" id="com.coala.core.commands.category">
</category>
<command
categoryId="com.coala.core.commands.category"
id="com.coala.core.commands.runcoalaCommand"
name="Run coala Command">
<command categoryId="com.coala.core.commands.category" id="com.coala.core.commands.runcoalaCommand" name="Run coala Command">
</command>
<command
categoryId="com.coala.core.commands.category"
id="com.coala.core.commands.removeMarkersCommand"
name="Remove Markers Command">
<command categoryId="com.coala.core.commands.category" id="com.coala.core.commands.removeMarkersCommand" name="Remove Markers Command">
</command>
<command
categoryId="com.coala.core.commands.category"
id="com.coala.core.commands.bearList"
name="Bears">
<commandParameter
id="com.coala.core.commands.bearList.parameters"
name="Bear List"
optional="false"
values="com.coala.core.menu.BearMenu">
<command categoryId="com.coala.core.commands.category" id="com.coala.core.commands.bearList" name="Bears">
<commandParameter id="com.coala.core.commands.bearList.parameters" name="Bear List" optional="false" values="com.coala.core.menu.BearMenu">
</commandParameter>
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
commandId="com.coala.core.commands.runcoalaCommand"
class="com.coala.core.handlers.RuncoafileHandler">
<extension point="org.eclipse.ui.handlers">
<handler commandId="com.coala.core.commands.runcoalaCommand" class="com.coala.core.handlers.RuncoafileHandler">
</handler>
<handler
commandId="com.coala.core.commands.removeMarkersCommand"
class="com.coala.core.handlers.RemoveMarkers">
<handler commandId="com.coala.core.commands.removeMarkersCommand" class="com.coala.core.handlers.RemoveMarkers">
</handler>
</extension>
<!--
Expand All @@ -52,31 +31,16 @@
</key>
</extension>
-->
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu
icon="icons/coala-analyzer.gif"
id="com.coala.core.menus.popupMenu"
label="Run coala with"
mnemonic="o">
<dynamic
class="com.coala.core.menu.BearMenu"
id="com.coala.core.menu.bearListValues">
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu icon="icons/coala-analyzer.gif" id="com.coala.core.menus.popupMenu" label="Run coala with" mnemonic="o">
<dynamic class="com.coala.core.menu.BearMenu" id="com.coala.core.menu.bearListValues">
</dynamic>
</menu>
</menuContribution>
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar
id="com.coala.core.toolbar">
<command
commandId="com.coala.core.commands.runcoalaCommand"
icon="icons/coala-analyzer.gif"
label="coala"
mode="FORCE_TEXT"
tooltip="Run coala on Project">
<menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar id="com.coala.core.toolbar">
<command commandId="com.coala.core.commands.runcoalaCommand" icon="icons/coala-analyzer.gif" label="coala" mode="FORCE_TEXT" tooltip="Run coala on Project">
</command>
</toolbar>
</menuContribution>
Expand All @@ -91,9 +55,7 @@
</extension>

<extension point="org.eclipse.ui.ide.markerResolution">
<markerResolutionGenerator
markerType="com.coala.core.problem"
class="com.coala.core.quickfix.QuickFixer"/>
<markerResolutionGenerator markerType="com.coala.core.problem" class="com.coala.core.quickfix.QuickFixer"/>
</extension>


Expand Down
3 changes: 1 addition & 2 deletions com.coala.core/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down
13 changes: 2 additions & 11 deletions com.coala.feature/feature.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="com.coala.feature"
label="Feature"
version="1.0.0.qualifier"
provider-name="coala">
<feature id="com.coala.feature" label="Feature" version="1.0.0.qualifier" provider-name="coala">

<description url="http://coala-analyzer.org/">
The coala Eclipse plug-in provides static code analysis using coala.
Expand All @@ -14,11 +10,6 @@ Visit http://coala-analyzer.org/ for more information.
This program and the accompanying materials are made available under the terms of the AGPL License v3.
</license>

<plugin
id="com.coala.core"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin id="com.coala.core" download-size="0" install-size="0" version="0.0.0" unpack="false"/>

</feature>
3 changes: 1 addition & 2 deletions com.coala.feature/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down
3 changes: 1 addition & 2 deletions com.coala.site/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down